Expand description

base62 is a no_std crate (requires alloc) that has six functions for encoding to and decoding from base62.

Build status Crates.io Docs

Enums

Indicates the cause of a decoding failure in decode or decode_alternative.

Functions

Decodes a base62 byte slice or an equivalent, like a String, using the standard digit ordering (0 to 9, then A to Z, then a to z).

Decodes a base62 byte slice or an equivalent, like a String, using the alternative digit ordering (0 to 9, then a to z, then A to Z) with lowercase letters before uppercase letters.

Encodes an unsigned integer into base62, using the standard digit ordering (0 to 9, then A to Z, then a to z), and returns the resulting String.

Encodes an unsigned integer into base62, using the alternative digit ordering (0 to 9, then a to z, then A to Z) with lowercase letters before uppercase letters, and returns the resulting String.

Encodes an unsigned integer into base62, using the alternative digit ordering (0 to 9, then a to z, then A to Z) with lowercase letters before uppercase letters, and then appends it onto the end of the given String.

Encodes an unsigned integer into base62, using the standard digit ordering (0 to 9, then A to Z, then a to z), and then appends it onto the end of the given String.